/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: MainConfigOfAOP
 * Author:   zhouheng
 * Date:     2018/5/25 22:08
 * Description: 切面配置类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhou.annotation.config;

import com.zhou.annotation.aop.LogAspects;
import com.zhou.annotation.aop.MathCalculator;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 〈一句话功能简述〉<br> 
 * 〈切面配置类〉
 *
 * @author zhouheng
 * @create 2018/5/25
 * @since 1.0.0
 */
@EnableAspectJAutoProxy
@Configuration
public class MainConfigOfAOP {

    @Bean
    public MathCalculator mathCalculator(){
        return new MathCalculator();
    }

    @Bean
    public LogAspects logAspects(){
        return new LogAspects();
    }

}